home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 16 / IOPROG_16.ISO / soft / macaxsdk / macsdk.hqx / ActiveX DR3 SDK / ActiveX SDK / Control Common / CEnumConnectionPoints.h / CEnumConnectionPoints.h
Encoding:
Text File  |  1997-04-30  |  3.0 KB  |  130 lines  |  [TEXT/CWIE]

  1. // >>> ⌐ 1996-1997 Microsoft Corporation.  All rights reserved. <<<
  2.  
  3. /*
  4. !CEnumConnectionPoints();
  5. ªC ----- Enumeration connection points class
  6.  CEnumConnectionPoints methods
  7.     
  8.     DERIVED FROM:
  9.         IEnumConnectionPoints
  10. */
  11.  
  12.  
  13. class CEnumConnectionPoints : public IEnumConnectionPoints
  14. {
  15. public:
  16.     CEnumConnectionPoints(LArray* ConnectionPoints);
  17.     /* ñ1 Constructor
  18.     ** INPUT:
  19.     **        LArray *    the connection points to be enumerated
  20.     */
  21.  
  22.  
  23.     ~CEnumConnectionPoints(void);
  24.     /* ñ1 Destructor
  25.     ** INPUT:
  26.     **        void
  27.     */
  28.  
  29.  
  30.     
  31.     //  *** IUnknown methods ***
  32.     STDMETHOD(QueryInterface)(REFIID RefID, void** Obj);
  33.     /* IUnknown method
  34.     ** INPUT:
  35.     **        REFIID    the interface id being queried for
  36.     **        void **    pointer to the interface being queried for
  37.     ** RETURNS:
  38.     **        long    S_OK - interface found
  39.     **                E_NOINTERFACE - no interface found
  40.     **
  41.     ** Returns a pointer to the specified interface on a component to which a
  42.     ** client currently holds an interface pointer.  The following interfaces
  43.     ** are accepted:  IID_IEnumConnectionPoints and IID_IUnknown.
  44.     */
  45.    
  46.    
  47.     STDMETHOD_(ULONG, AddRef)(void);
  48.     /* IUnknown method
  49.     ** INPUT:
  50.     **        void
  51.     ** RETURNS:
  52.     **        unsigned long    the ref count for the object
  53.     **
  54.     ** Add a reference to this object.
  55.     */
  56.    
  57.    
  58.     STDMETHOD_(ULONG, Release)(void);
  59.     /* IUnknown method
  60.     ** INPUT:
  61.     **        void
  62.     ** RETURNS:
  63.     **        unsigned long    the reference count
  64.     **
  65.     ** Decrements the reference count for the calling interface on a object.  If
  66.     ** the reference count on the object falls to zero, the object is freed.
  67.     */
  68.    
  69.    
  70.  
  71.     // IEnumConnectionPoints methods
  72.     STDMETHOD(Next)(THIS_ unsigned long NumRequested, 
  73.                     IConnectionPoint** ConnectionPoint,
  74.                     unsigned long* NumReturned);
  75.     /* ñ1 IEnumConnectionPoints method
  76.     ** INPUT:
  77.     **        unsigned long        input: the number of connection points requested
  78.     **        IConnectionPoint **    output: the connection points
  79.     **        unsigned long *        output: the number of connection points received
  80.     ** RETURNS:
  81.     **        long        S_OK - everything is fine
  82.     **                    S_FALSE - the number returned differs from that requested
  83.     **
  84.     ** Get the next n connection points where n is the number requested
  85.     ** by the caller.        
  86.     */
  87.  
  88.  
  89.     STDMETHOD(Skip)(THIS_ unsigned long cConnections);
  90.     /* ñ1 IEnumConnectionPoints method
  91.     ** INPUT:
  92.     **        unsigned long    unused
  93.     ** RETURNS:
  94.     **        long            E_NOTIMPL - not implemented
  95.     **
  96.     ** At this time note implemented.
  97.     */
  98.  
  99.  
  100.     STDMETHOD(Reset)(THIS)  { return E_NOTIMPL; }
  101.     /* ñ1 IEnumConnectionPoints method
  102.     ** INPUT:
  103.     **        void
  104.     ** RETURNS:
  105.     **        long    E_NOTIMPL - not implemented
  106.     **
  107.     ** At this time not implemented
  108.     */
  109.  
  110.  
  111.     STDMETHOD(Clone)(THIS_ IEnumConnectionPoints** Enum);
  112.     /* ñ1 IEnumConnectionPoints method
  113.     ** INPUT:
  114.     **        IEnumConnectionPoints **    unused
  115.     ** RETURNS:
  116.     **        long                        E_NOTIMPL - not implemented
  117.     **
  118.     ** At this time not implemented
  119.     */
  120.  
  121.  
  122.     
  123. private:
  124.     unsigned long         m_RefCount;
  125.     unsigned long        m_Current;
  126.     LArray*                m_ConnectionPoints;
  127.     
  128. };
  129.  
  130.